package message;

import java.util.ArrayList;

import example.Tuples;

public class MessageInterface {
	public String query ="";
	public ArrayList<String> peerList=null;
	public ArrayList<Tuple> result = new ArrayList<Tuple>();
	public QUERY_TYPE queryType=null;
	public QUERY_TYPE getQueryType() {
		return queryType;
	}
	public void setQueryType(QUERY_TYPE type) {
		queryType = type;
	}
	public String getQuery() {
		return query;
	}
	public void setQuery(String qry) {
		query = qry;
	}
	
	public enum QUERY_TYPE {RANGE, JOIN, COOPERATE_JOIN, DEFAULT}

	public ArrayList<String> getPeerList() {
		return peerList;
	}
	public void setPeerList(ArrayList<String> peerList) {
		this.peerList = peerList;
	}
	public ArrayList<Tuple> getResult() {
		return result;
	}
	public void setResult(ArrayList<Tuple> result) {
		this.result = result;
	};
}
